package com.dj.uphome.web.vo.system;

import java.util.List;

import com.dj.common.web.vo.BaseVo;
import com.fasterxml.jackson.annotation.JsonView;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
/**
 * 系统菜单
 * @author HeLirong
 *
 */
public class SysMenuVo extends BaseVo {
	private static final long serialVersionUID = 8418151396900762155L;
	
	public interface DefaultView {};
	public interface UserDetailView extends DefaultView {};
	
	/**--------------数据库字段---------------**/
	
	private int menuId; 
	private String menuName;
	private String menuUrl;
	private int parentId;
	private int menuOrder;
	private String menuIcon;
	private int modelId;
	/**--------------辅助属性---------------**/
	
	private List<SysMenuVo> subMenu;
	private boolean hasMenu;
	private String type;
	private boolean isMenu=true;
	
	private List<SysMenuVo> children;
	private String iconCls;
	
	@JsonView(UserDetailView.class)
	public int getMenuId() {
		return menuId;
	}
	@JsonView(DefaultView.class)
	public String getMenuName() {
		return menuName;
	}
	@JsonView(DefaultView.class)
	public String getMenuUrl() {
		return menuUrl;
	}
	@JsonView(DefaultView.class)
	public int getParentId() {
		return parentId;
	}
	public int getMenuOrder() {
		return menuOrder;
	}
	@JsonView(DefaultView.class)
	public String getMenuIcon() {
		return menuIcon;
	}
	public int getModelId() {
		return modelId;
	}
	public List<SysMenuVo> getSubMenu() {
		return subMenu;
	}
	public boolean isHasMenu() {
		return hasMenu;
	}
	public String getType() {
		return type;
	}
	public boolean isMenu() {
		return isMenu;
	}
	public List<SysMenuVo> getChildren() {
		return children;
	}
	public String getIconCls() {
		return iconCls;
	}
	public void setMenuId(int menuId) {
		this.menuId = menuId;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	public void setMenuOrder(int menuOrder) {
		this.menuOrder = menuOrder;
	}
	public void setMenuIcon(String menuIcon) {
		this.menuIcon = menuIcon;
	}
	public void setModelId(int modelId) {
		this.modelId = modelId;
	}
	public void setSubMenu(List<SysMenuVo> subMenu) {
		this.subMenu = subMenu;
	}
	public void setHasMenu(boolean hasMenu) {
		this.hasMenu = hasMenu;
	}
	public void setType(String type) {
		this.type = type;
	}
	public void setMenu(boolean isMenu) {
		this.isMenu = isMenu;
	}
	public void setChildren(List<SysMenuVo> children) {
		this.children = children;
	}
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	
}
